package model;

/**
 * @author  megea
 */
public class SensedValue {

    /**
     * @uml.property  name="value"
     */
    private Double value;


    /**
     * @param value
     * @uml.property  name="value"
     */
    public void setValue(Double value) {
        this.value = value;
    }

    /**
     * @return
     * @uml.property  name="value"
     */
    public Double getValue() {
        return value;
    }

    public SensedValue(Double value) {
        super();
        this.value = value;
    }

    public Boolean isInRangeOf(Double aimValue, Double windows) {
        return ((Math.abs(value.doubleValue()-aimValue.doubleValue()))< Math.abs(windows));
    }


}
